package model

type TreeNode[T any] struct {
	Info     *T
	Children []*TreeNode[T]
}

func (t *TreeNode[T]) AppendChildren(child *TreeNode[T]) {
	t.Children = append(t.Children, child)
}

func (t *TreeNode[T]) GetChildren() []*TreeNode[T] {
	return t.Children
}
